﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace ShopayServer
{
    static class Program
    {

        static void Main(string[] args)
        {
            Http.Server http = new Http.Server("http://localhost:9502/");

            // 添加路由
            http.route.get("/", Controller.Api.Index);
            http.route.get("/close", Controller.Api.Close);
            http.route.get("/print/cashbox", Controller.Print.CashBox);
            http.route.post("/print/template", Controller.Print.Template);
            http.route.post("/print/pdf", Controller.Print.Pdf);

            // 启动 http 服务
            http.start();
        }
    }
}
